package com.art.sunflower.service;

import com.art.sunflower.exception.NullClassroomException;
import com.art.sunflower.pojo.Classroom;
import com.art.sunflower.pojo.Lay;
import com.art.sunflower.util.MyPageInfo;

import java.util.List;
import java.util.Map;

public interface ClassroomService {

    MyPageInfo getList(Integer pageSize, Integer pageNo) throws NullClassroomException;

    void add(Integer id, String name, String grade, String message, Integer num);

    void update(Integer id, Integer teacherId, String name, String grade, String message, Integer num) throws NullClassroomException;

    void delete(Integer id) throws NullClassroomException;

    Map<String, Object> getById(Integer id) throws NullClassroomException;

    int insert(Classroom classroom);

    List<Classroom> selectAll();

    int selectOneClassroom(int id);

    Lay findClassroomByTeacher(String teacherName, Integer pagenum, Integer pagesize);

}
